<?php $deudor_domicilio = $form->getObject() ?>
<h1><?php echo $deudor_domicilio->isNew() ? 'Ingresar' : 'Editar' ?> Domicilio a Deudor</h1>

<form action="<?php echo url_for('deudordomicilio/update'.(!$deudor_domicilio->isNew() ? '?id='.$deudor_domicilio->getId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
  <table>
    <tfoot>
      <tr>
        <td colspan="2">
          &nbsp;<a href="<?php echo url_for('deudordomicilio/index') ?>">Cancelar</a>
          <?php if (!$deudor_domicilio->isNew()): ?>
            &nbsp;<?php echo link_to('Eliminar', 'deudordomicilio/delete?id='.$deudor_domicilio->getId(), array('post' => true, 'confirm' => 'Esta seguro que desea eliminar el domicilio del deudor?')) ?>
          <?php endif; ?>
          <input type="submit" value="Guardar" />
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?php echo $form->renderGlobalErrors() ?>
      <tr>
        <th><label for="deudor_domicilio_deudor_id">Nombre de Deudor</label></th>
        <td>
          <?php echo $form['deudor_id']->renderError() ?>
          <?php echo $form['deudor_id'] ?>
          A esta ventana se llega a traves del visualizar deudor
        </td>
      </tr>
      <tr>
        <th><label for="deudor_domicilio_calle">Calle</label></th>
        <td>
          <?php echo $form['calle']->renderError() ?>
          <?php echo $form['calle'] ?>
        </td>
      </tr>
      <tr>
        <th><label for="deudor_domicilio_numero">N&uacute;mero</label></th>
        <td>
          <?php echo $form['numero']->renderError() ?>
          <?php echo $form['numero'] ?>
        </td>
      </tr>
      <tr>
        <th><label for="deudor_domicilio_depto">Departamento</label></th>
        <td>
          <?php echo $form['depto']->renderError() ?>
          <?php echo $form['depto'] ?>
        </td>
      </tr>
      <tr>
        <th><label for="deudor_domicilio_villa">Villa / Poblaci&oacute;n</label></th>
        <td>
          <?php echo $form['villa']->renderError() ?>
          <?php echo $form['villa'] ?>
        </td>
      </tr>
      <tr>
        <th><label for="deudor_domicilio_comuna">Comuna</label></th>
        <td>
          <?php echo $form['comuna']->renderError() ?>
          <?php echo $form['comuna'] ?>
        </td>
      </tr>
      <tr>
        <th><label for="deudor_domicilio_cuidad">Cuidad</label></th>
        <td>
          <?php echo $form['cuidad']->renderError() ?>
          <?php echo $form['cuidad'] ?>
        </td>
      </tr>
      <tr>
        <th><label for="deudor_domicilio_region">Regi&oacute;n</label></th>
        <td>
          <?php echo $form['region']->renderError() ?>
          <?php echo $form['region'] ?>
        </td>
      </tr>
      <tr>
        <th><label for="deudor_domicilio_telefono">Tel&eacute;fono</label></th>
        <td>
          <?php echo $form['telefono']->renderError() ?>
          <?php echo $form['telefono'] ?>

        <?php echo $form['id'] ?>
        </td>
      </tr>
    </tbody>
  </table>
</form>
